package com.PinZhuo.www;

import android.support.v4.app.Fragment;
import android.view.View;
import android.widget.TextView;

import java.util.List;

/**
 * Created by tukela on 2015/10/12.
 */
public class BaseFragment extends Fragment{
    public void setTextViewOnClickListenner(List<TextView> list,View.OnClickListener listener){
        for (TextView textView : list) {
            textView.setOnClickListener(listener);
        }
    }

    public void setTextViewBc(List<TextView> list,View view) {
        for (TextView textView : list) {
            if (textView.getId()==view.getId()){
                textView.setTextColor(getResources().getColor(R.color.red));
            }
            else {
                textView.setTextColor(getResources().getColor(R.color.green));
            }
        }
    }
}
